package com.enjoyor.soa.traffic.ping.efoms.dubbo.invoke;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.ubms.service.dubbo.DubboDeviceInfoService;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@Component
public class DubboDeviceInfoInvoke {

	@Reference(timeout = 10000)
    private DubboDeviceInfoService dubboDeviceInfoService;

    /**
     * 获取设备信息
     * @param devType 设备类型
     * @return
     */
    public ResultPojo getDeviceInfo(String deviceType) {
        ResultPojo pojo = dubboDeviceInfoService.getDeviceInfo(null, deviceType, null, null, null, null);
        return pojo;
    }
}
